package List;

public class Test {

    public static void main(String[] args) throws Exception {
        // ˳
        IList<Integer> l1 = new SeqList(100000);
        long s1 = System.currentTimeMillis();
        for (int i = 0; i < 100000; i++) {
            l1.insert(0, i);
        }
        long e1 = System.currentTimeMillis();
        System.out.println(e1 - s1);
        long ss1 = System.currentTimeMillis();
        for (int i = 0; i < 100000; i++) {
            l1.get(i);
        }
        long ee1 = System.currentTimeMillis();
        System.out.println(ee1 - ss1);
        //
        long s2 = System.currentTimeMillis();
        IList<Integer> l2 = new SinLinkList();
        for (int i = 0; i < 100000; i++) {
            l2.insert(0, i);
        }
        long e2 = System.currentTimeMillis();
        System.out.println(e2 - s2);
        long ss2 = System.currentTimeMillis();
        for (int i = 0; i < 100000; i++) {
            l2.get(i);
        }
        long ee2 = System.currentTimeMillis();
        System.out.println(ee2 - ss2);

        Object obj1 = 1;
        Object obj2 = 1.1;
        Object obj3 = "ABC";

    }

}